Added new indexing functions

-Moved indlm and indml to indlm1 and indml1 respectively
-Created indlm0 and indml0 for 0 indexing
-Updated sampling to reflect this, and verified step 1