fix checkoptions error, update docs