Add libraries

* Added libraries removed before.
* Don't use them ditectly. Just copy to project.
* In future this templates should be reimplemented as classes.