add a few consts; update doc