Added some documentation and fixed a module loader bug.