Added 'const' and fixed .gitignore.