starting to port my code to something command line based.  stripped out the keys structure from the index code so I could maintain my code without having them hardcoded into that file.
cleaned up comments.  testing running from the command line.