bugfix
Merge branch 'bug_fix' of github.com:modilabs/nmis_R_scripts into optimizations