Fixed getData method and some typos