reformatted code
added raw signal output files
got xyz and signal recording working