Finished 'upload' command. Finished error messages. Cleaned up code. Added more comments.