Added loading metadata

Added a small amount of code to load the metadata, the path that it
loads will have to be changed. Other than that it seems to work