re-order handler functions to match menu order
allow execution as standalone script
improve initialization and execution as module