spelling fixes, tab removal and formatting improvements