Changes printf errors to the new error function

- Errors previously displayed via printf statements are now using the
Error function.
- Additionally, printf warnings are displayed using a define that
redirects to the Error function.