 }
 
 
-#define kLineLen (32)
-char linebuf[kLineLen];
 
 void cmd_eformat( void )
 {
   Serial.print( "Formatting EEPROM..." );
-  for( int i=0 ; i<=E2END ; i++ )
+  for( int i=0 ; i<kEESize ; i++ )
   {
     EEPROM.write( i, 0x00 );
 //    digitalWrite( kLED, i & 0x020 );


	// process it
	if( !strcmp( linebuf, "mem" )) { cmd_mem(); }
	else if( !strcmp( linebuf, "eformat" )) { cmd_eformat(); }
	else if( !strcmp( linebuf, "elist" )) { cmd_elist(); }
	else if( !strcmp( linebuf, "eload" )) { cmd_eload(); }
	else if( !strcmp( linebuf, "esave" )) { cmd_esave(); }
	else if( linebuf[0] != '\0' ){
		Serial.println( "Huh?" );
	}


////////////////////////////////////////////////////////////////////////////////
#define kRamSize (E2END + 1 )
#define kEESize  (E2END + 1 )

char programRam[ kRamSize ];


int ramFree = 0;
int eeFree = 0;


void cmd_mem( void )
{
	ramFree = strlen( (const char *)programRam );
	ramFree = kRamSize - ramFree -1;

	Serial.print( "    " );
	Serial.print( (long)ramFree, DEC );
