fixed compilation in visual studio, it doesn't have snprintf function
added .gitignore file