Outsourced the HTML Output and the Error Message Generation to separate methods. Makes it easier for extending classes to redefine or extend upon the actual classes code.
pushed v#