Pattern parser (refactor)

Implemented object model to ease development