Added ability to access metadata using attributes and as dictionary