Changed doc style and fixed up refs so they serve using htmlpreview