consistant spacing instead of mixed spaces and tabs

Indentation was inconsistent. Now using 4 space indentation everywhere.