Added PIC32 configurations, added state machine for troubleshooting, added real time clock functionality