added ValuePlotter, various refactorings