Fix error handling. Fix encoded html characters. Make markov function do some rough ranking