added enclosure and delimiter to options; added more security checks to ...

...checkdata