some small coding style changes

spaces over tabs and some style changes to be more consistent