Added the local tests and the documentation.