Updated paths and made a cli and plain version.