Better residue indexing when searching for residues. Updated tng_io library to latest version (bug fixes).

Change-Id: I7810ed80613c698ff1e71f96612ff7532136f4a4