added comments
added comments. plus reading pwdFile from cmdline