deallocating memory

implementing destructors

Issue #3
little clean up

minor changes

Issue #3