Made the code Ruby Style Guide compliant and added RuboCop for enforcement