improved http status codes and fixed unit tests
markov chain based simulator