Refactored some schema methods. Cleaned up documentation.