Added the destructor.
Fixed compiler issues in the main and added find and add methods.