Changing tabs to spaces and reducing length of lines as per Ruby style guide