Fixed spelling error
Fixed format specifiers
Fixed error message
Fixed type format specifier
Remove unreachable code
Fix spelling error