Fix typos, formatting and code hint annotations