Fix build
Remove warnings
Add gitignore