Fixed some typos and bugs, added getter for entity parameters.