Final Commit for MPhil Project. Ping-protocol, pairing etc working!