adding license, adding cli tools, fixed some bugs