Fixed typos in code and updated readme