Add .gitignore file
Make some functions private, and remove all the commented-out code