Fixed some bugs and typos