Hardware fixes and tidying

Swapped some pins on the arduino for connections to the card reader to
better suit the hardware, tidied formatting