HTML View (rudimentary), use ?debug to get a table of the statements. Small refactorings and cleanup.