Additional Error catching.

Also added aesthetic spaces and formating of error outputs.