fixed error in insertSingleEventUpdate, added methods to check parameters