Support for a description line and expansion level

Extended the dump function to support different expansion levels and, optionally, add a description line when generating the html dump.