Fixed documentation errors, along with implementation errors. #143