tiny comment correction
added greedy mode pattern matching
updated API docs