fix bugs

add password input function, fix strange clear screen, fix wtf coding style.
Merge pull request #2 from knowlet/patch-1

fix bugs