Removed generated id lines, reformat and fix warnings.
Merge pull request #6 from bmagyar/master

Merge from PAL svn to github