Renamed file, cleaned up code

Came across the Google bash style guide, so I attempted to refactor the
code a bit to adhere to their suggested best practices