remove unused code.
add basic cli parser.