Input exception handling

Roll functions now handle input errors.