Adding documentation

Added a docs folder with the initial document.
Makefile for the examples folder improved.