Fixed for nonexistent bytes, added unit tests, changed stdout-page to stdout