Added Previous State examples and documentation.