Used Astyle with default options to get the code beautified and replacing tabs with 4 spaces (as defined by default).