Fixed error handling in example
Added scroll but there are still issues with it
Removed some unused consts.