html writer for docs, very basic for now
minor edits