Added read from file option and command line arguments;