Error messages changed to be more apologetic. Cleaned up parts of the code from unused imports and strangely formatted lines.