Added a main, made executable from the CLI