Add a ezdemo sample. Minor bugfixes