refactored and added new command ‘install’