Refactored handling of schemas and escaping
Cleaned up imports
Clearer class name
Docstrings and cleanups
More docstrings
added tools, misc. cleanups