Add memory deallocators;
Add debug output