Extensive commenting and small bugfixes