Fix empty session ID and cleanup

- Fixed handling of empty session IDs for those commands that required them
- Added help text for ranges with examples