Fixed bugs
Updated typos