Pointer attributes not initialised to null

Pointer attributes need to be initialised to null in the constructor so that applications using the library can check if the pointer is valid.