bump document detail to the new layout
general cleanup of unneeded code and some pyflakes clean
add missed template