added option to specify noise in data