Fixed bug about GET /layers/<l> method.
Minor changes.