Merge branch 'release-1.5.39' into develop
updated comment
fixed variable declaration bug
bumped version number to lis-1.5.40
Merge branch 'release-1.5.40'