Fixed the gitignore and removed printf's from a function.