Add 'help' command and arrange the code