Removed unnecessary code. Fixed issues in the validator. Fixed header.