add Decode as a convenience function to Header