Fixed typos on the code