All code written for my team's project in the 2015 BT Young Scientist Exhibition.