change Parser to a Singleton class

-change Parser to a Singleton class as it is more appropriate to have
only one instance of the Parser object