Clean up all code

The following changes were made:

- I've gone through all the code and cleaned it up, adding spaces between operators where it makes sense and allows for better readability.
- There were a bunch of missing semicolons in numerous places which I've also fixed.
- All files should have an empty line at the end, so I fixed this.
- Added a README to explain to people what the purpose of this repository is.
- Added the MIT license and LICENSE file so that others may safely use this code in their other projects without copyright issue.
- Commented out *some* dead code. Lots of dead code is dependent on a single parameter being set (e.g. drawPlot = 0 when set to 1 will turn dead code back into reachable code). I've left all those in and tried to comment a few places to describe what that value does.

Let me know if there's anyway I can make this better. :smile: