Add cmdline interface
refactor
update readme