Refactored code

Implemented a coding standard/style
Made sure my files are consistently laid out.

Name of variables are camelCase
Name of classes are ClassCamelCase
Hashes are :key => data, linebreak, :key => data
Curley braces close on their own line when necessary

TODO:
Implement exception handling in the current codebase.