change class Parser to non static class

-change class Parser to non-static for easier parsing as some data need
to be stored while parsing