Changed MIRF code to correspond with new pins, added some tests