added basic process destroy method; fixed some warnings