Gsoc layers

In this pull request are merged code of the master included. I hope, that no problem