Version 1.0

Huge edits, removed nearly 1,000 lines and it works the same with more
efficient code.