Fix typos and minor errors