Fix for issue 628
add assert
Merge pull request #629 from SimTk/mdcrd-atomindices

Fix for issue 628
Merge pull request #8 from SimTk/master

update