added header file
syntactic sugar
implemented at_most option
code refactoring
added optional hwm in header
minor fixes
field matches are working