spelling fixes

- anscestor -> ancestor
- fucntion -> function
- initialices -> initializes
- initializised -> initialized
- recognice -> recognise