Corrected syntax error and added documentation.