fixed hash so that using rsa keys works
Small changes regarding password and checking command line input.