added script for hist print and noise calculation (latter incomplete) #40