bug fixes. argumenterrors and typeerrors. validator for single option