Fixed various style issues in the key_share code