Added class to parse Package Metadata.
Also added error handling helpers.