Fix CodeSniffer issues and typos