Added the documentation as tex file and pdf.