Error reporting and Example updated

Error reporting added to chunk and made the simple example even more
simple