Reworked SOME code, most changes are just comments for BeefStu