[ Issue 1350 ] Fixed haddocumentation and added tests of cluster functions.