Reformatted for beauty

- Four spaces instead of tabs
- Double quotes instead of single quotes
- Proper indents and spaces
- Exported functions are now camelCase