A feedback controlled carbon nanotube based NEMS device