Fix typos and make compiler funcs private