Fixed typos/syntax errors/missing imports