Error messages fixed.

A few minor error handling statements have been added.
Testing programs.

These are just a few minor files for testing piping and redirection.