Simplified hist code; Added file dialogs for compare
Cleaned up a bit, statistics work for up to 4d but slow, visualisation doesnt