changed range to 30 degrees

also created histogram functions