Added support for outputting to a file. Annotates hRels and hProps.