further refactoring of the tools to include options parser to make it
simpler to add additional options as required.