Cleaned up code

- Localized functions
- Unified coding style
- Renamed functions to be standard
- Bodies identify after being removed now
- Added credits