Fix style issues
Add documentation for layer() and setLayer(...)