Fixed warnings and spelling