renames schemasModel to schemaModel, added comments, and fixed some indentations