added some docstrings
more docstrings, updated menu button functionality