Small typo fixes and added some needed paramaters.