updated a bunch of code in the vegetation index script