Fixed some typos and changed the scripts slightly