Replace tabs with spaces and remove trailing whitespace.
Document and clean up theme-settings.php.
Clean up template.php.
Rename vars to variables.