add missing newlines before EOF
fix uncrustify glitches + add uncrustify-post sed script

@MrKepzie can you test the script?
instructions are in the comments at the beginning of the script