Convert tabs to spaces and fix some format issues.