Tuning curve measurements + plotting added