Rewrote the text analyze part and hooked it up to current html.