fixed resource leak mentioned in issue #22
updated package.xml