Replaced static with private variables

This change allows to use multiple instances of the parser