code cleanup p2

further converted arrays into lists; add in some new options(# of
measurements, duration in between, range of values);