XHTML errors and some logical errors corrected
XHTML errors and some logical errors corrected 2