removed unneeded parameter in writeLexicalError() and corrected synchronization of errors.out file