provide default for miscdata key
add hook to debug footer section

would like to tidy this up so that a var can be passed in and the code
formats it with <ul><li> rather than manually appending | marks