added cli parser, improved doc