cleaned up typos and console.logs