Fixed some typos in a comment, moved an extern, and made a few