fixed typos and minor errors