scope bugs, document issues
limit and button state fixed