sanitized measure interface
code beautification
updated documentation
implemented different matching modes