Ch-ch-ch-changes. Now with MOAR dragons.
Remove hard tabs. Use spaces instead.
Make intelligible
Make it clear exactly who's speaking here
Make function more honest about what it does. Remove debug type output from main program.