More Documenting and Commenting

Second commit with commented code for master.m