Change initialise order to get rid of bad chars, improve docs, bad use of DEBUG #define in measure_init()