fixing PHP STRICT warning
fixing another Notice:  Undefined offset: 0/1
fixing Notice: Undefined index: class
cleanup, working on preventing double loading of modules
working on documentation