added a method to build index without holding on to all the loaded dump references
switched indexing to use build_index
switched to argparse from optparse
added a 'sample' command'