formatting edits (mostly tabs/spaces)

basic formatting edits. (tabs and spaces were mixed up a bit)