added separate cli and web interfaces. extracted general package
added limit to request body in web interface, removed formatting bug (appending spaces after \n)
added some docs, modified readme