Clean Up/Documentation

pretty much done, should tidy up code one day