updat Gemfile / add testing libs
refactor
puts -> logger
refactoring
refactoring
delete unused params
add spec files
Merge branch 'testing-and-refactoring'