Added way to refresh the layers with a clean public API method

This is directly aims #119.

I wasn't able to run the minify script. Can anyone help?