Added new functions ReadNBytesInto8(s) and several other minor changes. Change-Id: I175fd3be388fcfd04fc205e25ab7dec4c8b004ff