Changed schema() to get_schema(). Added unit test for get_schema(). Added docstrings for get_schema().