fixed codesniffer violations and a couple of typos