Added a lot of comments to code for Shule, tidied up some indentation, removed unnecessary legacy commented code