fixed minor typos
fixed typos, and specified a keyword argument dtype=object so as to work in updated numpy version