Minor tweaks: catch invalid nbit errors, row indexing at 0.