Setup command dictionary structure and main loop