 boolean writingToFlash = false;  // whether we are currently writing to MAX1464
                                  // flash memory
 unsigned long hexLinesWritten = 0; // count hex lines written during flash loop
-MAX1464 maxim(10);
+MAX1464 max1464(10);
 
 void printIden() {
     Serial.println("Arduino MAX1464 Serial Terminal");

                writingToFlash = false;
                Serial.println("\nAbort writing to flash memory...");
            }
            else if(!maxim.writeHexLineToFlashMemory(inputString)) {
                Serial.print("\nIllegal line ");
                Serial.println(inputString);
            }

            if(partition_cp != NULL) {
                partition = atoi(partition_cp);
            }
            max1464.readFirmware(partition);
        }
        else if(String("HALTCPU").startsWith(inputString)) {
            Serial.println("Halting CPU");
            max1464.haltCpu();
        }
        else if(String("RESETCPU").startsWith(inputString)) {
            Serial.println("Resetting CPU");
            max1464.resetCpu();
        }
        else if(String("RP").startsWith(inputString)) {
            char *port_cp = strtok(NULL, " ");
