Fix to allow logging with user/password on commandline
private static Logger log. Better comments
Merge pull request #8 from ngiger/fix_login_with_password_2

Fix to allow logging with user/password on commandline