compilation warnings fix

Fixed the majority of compilation warnings emitted by clang (600.0.51) and gcc (4.9.1); also added several small changes to .gitignore, Makefile. See CHANGELOG.txt (I added that, as well) for details. Most changes were also commented in-line.