Some tiny formatting
Avoid compiler warnings
More comments in source code
Improve documentation