improved source format

replaced tabs with spaces and removed tabs/spaces from end of lines.