whitespace and comments

Moved assert messages into the comments.
Removed warning from unused variable
Removed trailing whitespace

Opened all files in vim and ran 'bufdo w' with
'autocmd FileType c,cpp,java,php,lisp,txt autocmd BufWritePre <buffer> :%s/\s\+$//e'
in .vimrc.
Removed extra tests and test warning