Fixed sudo and chdir issue and few typos.