Added optimization to just read the first N bytes

It's not using stream yet. Next version will. But I find this addition very useful nevertheless (I would have loved to have found it when I needed it).

Cheers