1) Added some trivial params validation
2) Added help option, fixed relative output