added stripslashes before lookup to prevent double escaping
added doctype and default character set for html pages
added e-mail validation, improved docs