update doc loader
various formatting stuff