Moved "new" operations to class constructors

The parsehelper.h and settings.h header files, both, declared variables
and initialized them using the "new" operator.  However, this results in
compilations errors (on Windows?).  The assignments were moved into
their respective constructor methods.  Since this is dealing with
dynamic memory allocation, a destructor was added to each class to
deallocate the corresponding dynamic memory.