Added missing format strings
Fixed scanf
Whitespace