grammar issues fixed, but there are maybe logic error not yet picked. And all supporting functions like printing tab file has not yet tested. To be done soon.