 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);
            }

                Serial.print("CPU port ");
                Serial.print(port_cp);
                Serial.print(" == ");
                uint16_t value = max1464.readCpuPort(port);
                printHex16(value);
                Serial.println();
            }
        }
        else if(String("STEP").startsWith(inputString)) {
            Serial.println("stepping");
            max1464.singleStepCpu();
        }
        else if(String("RELEASECPU").startsWith(inputString)) {
            Serial.println("Releasing CPU");
            max1464.releaseCpu();
        }
        else if(String("!ERASEFLASHMEMORY!").equals(inputString)) {
            Serial.println("Erasing FLASH memory");
            max1464.eraseFlashMemory();
        }
        else if(String("!WRITEFLASHMEMORY!").equals(inputString)) {
            char *partition_cp = strtok(NULL, " ");
