Added comments describing some of the lower level functions (spi_write, register_write, initialization functions, etc.)  Removed some of those unused functions like error_flash, considering some of those pins are now wired to either the H-Bridge or the magnetic card reader.