reformat source code: detabify, 3 spaces per indentation, braces everywhere