updated documentation and demo