Separated parameters,hostgroups list from code and added RSPEC