adding while loop in cmd_arbiter to select corresponding command;
adding echo function