Move system dependent functions into 'lib'
[Coding style] delete whitespaces
[Coding style] 80 char lines
Let doxygen parses '/lib' too
Exit if sanity checks fails
Typo in --help
[Coding style] rename variable