a bit of work on bin-average procedures...working more now too.