refactored Lookup.parse. added syntax-todocument config