Fixed some stupid errors.
added test html file and fixed some errors