cleaned up ORM code, and documented new classes