Fixed a problem where a page miss would throw

also fixed the sample code in readme :¬)