Writing doc and stuff
Finished the doc. Done some minor refactoring without rebuilding. Hope it still works