fix some compile time warnings, add .gitignore file.