Quick fix for #4. Redraw vector layer even when panning.
Tiny improvements in formatting and commenting.
Merge pull request #6 from forkmerge/master

Tiny improvements in formatting and commenting.