Fixes typos and syntax