Add optional parameters to DirectoryStub.createTemp() and createTempSync().
Add comments to FieldParser and do some refactoring.