formatted the code, added doctype etc