Added comments for the return parameters and corrected some spelling misstakes.