refactor. profile, interface changed. unitest updated. in: htmlStr. out: profile:dict()