fixed some layout
expanded script to create tidy dataset file of averaged measurements