fixed lens math
Merge branch 'master' into gh-pages