Fixed minor typos and some codes.