Documented and commented some more code