changed init to clone repository, added environment variables for configuration, added cleanup