updated README to v 0.2
generalized updateState function