Added purge, fixed clone, added cwd to execute, added repo helpers