Merge pull request #1 from heigeo/master

Get rid of null layer tooltips if undefined
reduce duplicate vars
Fix show-tools attribute