bugfixes, clear variables each line and zero pooled FREQ