Source code formatting. Add missing curly braces for single line if-then-else expressions.
Source code formatting. Add missing curly braces for single line if-then-else expressions. Moved badge function to general library.
Removed log-file from sourcetree.