throw error if no collection removed and fix cod style
fix callback more standard for NodeJS