comply to RuboCop rules, fixes travis build (and add some logging)