added get by index
added get by index
fixed valid index test
modified to purge by user mode
revert purge modification
finally got getent by id working
Merge pull request #4 from chrissphinx/master

added get by index