added a decimating script
added some comment