Added argument validation and file input

Added argument validation so there can only be 2 arguments and also
added the file stream with validation if the the file address is
incorrect.