Replace itoa with snprintf, since itoa only exists on Windows
Add a .gitignore file