Dispose() method for all objects

An implicit (Terminate_Class) and an explicit (Dispose) method have been created
to stimulate better memory management.

Change-Id: I240e5117db6bf0d1fcf268e3ddf6d67e0bc1b8eb