Adding the main documentation with minor adjustments to examples.