adding usage display
update usage
putting check before use of args
adding a logger
generating indexes
correct the logger
moving index generation to the write place
cutting dependeny from HeaderDataMap to HashMap
replacing HashMap by TreeMap