Adding functions for parsing metadata from .pg files