Added checks on input indices to ensure that they are within appropriate bounds
Added checks on input indices to ensure that they are within appropriate bounds

votca/tools,votca/tools,votca/tools,votca/tools