Encapsulated MetaData members. Added helper functions for common tasks.

Corrected.