Fixes some typos and warnings

The spelling nazi was here :)