Fixed ifdef __cplusplus closing bracket. Removed trailing whitespace
Autoformatting
Code style changed according to common sense