Fin

Finished. Code cleaned up and commented, final commit.