Corrected some problems with the documentation as well as a syntax error