Code clean up

- removed trailing whitespace in all C files with a sed script
- removed some uncommented code