docstrings, and more fixes after last refactoring.
more commands implemented, fixes, etc.