Added destructors, fixed errors