Safer memory management (frees toAdd memory on dtor)
Use typedef
Minor changes/comments/refactoring