Encapsulated MetaData members. Added helper functions for common tasks.

You are right. I did not notice until now that you checked for inequality.