clean up and comment code
Merge pull request #101 from foresttoney/login

clean up and comment code