1)Added support for command line argument.
2)Added support for cutting file into pieces. //Not well tested