averaging code now basically works, have to make sure things are normalized properly
averaging now works, but it looks like there is an error in the long-time averaging code
minor changes, now long time output has newline