Split method format_file into 3.
Split format_lines into 2 methods.
Merge pull request #2 from fortissimo1997/code-climate

Apply Code Climate