Fixed some indenting issues so that Graeme can try to get it working on his home computer.