Added cli interface (can also be used as lib)
Updated readme