Refactor: make formatting consistent

Used GNU Indent with the -linux option