Refactored KeyListOps, Context, mapFile to make KeyListOps reusable by other tools