Comments and non-static file names

Added a section to use command arguments for input and output files.
Also added some comments