fixed typo in comments
moved controller to its own library
added .gitignore