Added schema generation, completed doc