adjusted whitespaces
added some warnings and checks
spelling
Merge pull request #39 from gawrysz/cosmetics

Cosmetics