Changed class implementations for using pointers. Added garbage deletion mechanmism to destructors.