update documentation and formatting. also fix bounding boxes of math-variable