Added style processing functions and function to get html doc