split source into multiple files, and moved the ssl socket wrapping into the server code instead of having it in the client code
removed useless global
switched argument parsing to argparse
updated readme to reflect argparse switchover