Update documentation and samples, add Latex outputs