added code to AHMDocument files.