fixes for data_analysis, added tool for playing with goal functionals