more improvements to simpledoc