Kind of refactored. Made new versioning for meta.
Clenead up populating functions
Typo fix
Put $schema where it should be.
Cleaned up a bit