Send XML to frontend
Clean up UI a bit
Make XML look a bit nicer
Merge branch '227-sampling'