Initialized more members. Fixed up bugs and destructors.