Added code to write to new file for each sideband (in FPGAControls.cs)
Sorted out using a function to write metadata to files in CoreForm.cs
Handling viewer form opening/closing
Fixed creating spectrum with metadata, and storing metadata in fileHandler
Clean up threads when CoreForm is closed
Updated metadata to write sideband information only for windowed spectra, otherwise write N/A
Added sideband number into metadata to be passed to viewer (for standardisation)
Fixed some metadata issues (live version is probably broken!)
Merge branch 'Sarah'

Conflicts:
	C#/Spectroscopy Controller/Spectroscopy Controller/CoreForm.cs
	C#/Spectroscopy Controller/Spectroscopy Controller/FPGAControls.cs
Merge branch 'Sarah' into RetryMerge

Conflicts:
	C#/Spectroscopy Controller/Spectroscopy Controller/CoreForm.cs
	C#/Spectroscopy Controller/Spectroscopy Controller/FPGAControls.cs
Conflicts resolved
Changed logic for creating hex files to new bit assignments
Compiled FPGA code, fixed a couple of bugs with controller

Now turns on the lasers, but no stop signal in hex file (despite adding one to pulse tree)
Trying to work out bugs
Debugging, perhaps breaking some stuff. Warning.
Merge branch 'RetryMerge'

Conflicts:
	C#/Spectroscopy Controller/Spectroscopy Controller/CoreForm.cs
	C#/Spectroscopy Controller/Spectroscopy Controller/FPGAControls.cs
Fixed merge conflicts