fixed some problems with plotnik.plt_* functions, and incorporated them into outputMeasurements()