fix some HTML issues in annotation file
make code blocks open on first click instead of second
minor code cleanup
include type in annotation item text