Some docstrings and styling.
Fixed importing of external metadata files.