Got rid of several warnings and improved Gitignore file.

Also fixed a minor typo in contributing readme file.