Converted tabs to spaces.
Cleaned up code.