Restructured and fixed examples
Added documentation