It compiles now

lots of typo fixes and other stuff