Code formatting changes

Break lines, add fullstops, spaces around operators, etc.
Styling assisted with PyCharm.
Merge pull request #2 from rivimey/feature/codestyle-updates

Code formatting changes