added warningDict, catch errors when number of arguments received is not correct.