fixed debug in quantity
added tools/corr
corr is file length agnostic
write every ten
ignore hist files
correction off
added meta_gen