Refactored help() and catlast() into own methods
Outsourced Tree building
Refactored run_queries
Refactored pre-command execution