refactoring and fix for dimensions
refactoring and fix for dimensions

mmalter/dlstats,MichelJuillard/dlstats,MichelJuillard/dlstats,Widukind/dlstats,mmalter/dlstats,mmalter/dlstats,Widukind/dlstats,MichelJuillard/dlstats