Apache Commons Lang added to support special characters from HTML
Comments added. Code reorganized.
ErrorCodes list created.