followed up on scada data averaging; improved docs and arg handling