Started splitting functions up into modules, and reworked the .md files