update gitignore
fix compilation warnings
another round of cleanups #2