Comsetics (moved everything to smart ptr's; added dtors).