Fixed Minor bugs and spelling errors