Parameterize ruby version, remove unused imports, remove unused files