ClassInstance completely cleaned up and documented.