public static void main(String[] args)
	{
		if (args.length > 0)
		{
			if (args[0].equals("read"))
			{
				try{
					map = MMStore.readMap(mapFile);
					//System.out.println("Read in map of size: " + map.totalSize());
					System.out.println("Read in map of size: " + map.size());
					Iterator iter = map.keySet().iterator();
					while(iter.hasNext())
					{
						Object key = iter.next();
						System.out.println("[" + key + "]-->[" 
								+ map.get(key) + "]");
					}
				} catch (Exception e) {
					System.err.println("Caught exception: " + e.toString());
				}
				System.exit(0);
				
			}
			if (args[0].equals("put") && args.length > 2)
			{
				System.out.println("Reading hashtable from file: " + mapFile);
				try{
					map = MMStore.readMap(mapFile);
					//readMap();
				} catch (FileNotFoundException e)
				{
					System.out.println("File not found, will create new file.");
					map = new MMStore(mapFile);
				}
				catch (Exception e) {
					System.err.println("Caught exception: " + e.toString());
					System.exit(1);
				}
				System.out.println("Putting [" + args[1] 
						+ "]-->[" + args[2] +"]");
				map.put(args[1], args[2]);
				try{
					map.writeMap();
					System.out.println("Map has " + map.size() + " entries");
				} catch (IOException e) {
					System.err.println("Caught exception: " + e.toString());
				}
			}
			else
			{
				System.out.println("Must pass 'name' 'value' pair to put");
			}
		}
		else
		{
			System.out.println(
					"Usage: \tSerializingTest put <key> <val> \n" +
					"\t SerializingTest read"); 
		}

	}