Added noise calculations and thresholding (beta). Main gui needs reorganizing.;