Fixed typos, indentation and other minor errors.