Added more unit tests, demos and documentation.