Changed some things

Argument 2 has been removed, and is now replaced by cout  and cin to
support file redirection.