extra debug lines in gus_pat.c from Chris. some more formatting tidyup.