added documentation, fixed nullpointerexception when starting with --help parameter