various changes due to mods to average.d and measure.d; new parsing concept for photocode-related fields