The modes returned were off by one, fixed
The modes returned were off by one, fixed

The index is already a zero-based index, no need to decrement again.
Apply the slice to other parameters too in order to only return data
for the selected mode.

OpenChemistry/mongochemserver