Fix compiler warnings and improve the .gitignore

Hi there, 

Was looking around at the product and did some clean up of compiler warnings and ignored some unnecessary files. 

Sam