First work done on adding a command line method,

In addition also added a method to handle the files which have numbers as headers