Added 'cumulative sum' data transformation plus misc. bug fixes