update many functions, removing trailing whitespaces

Signed-off-by: William Rockwood <wrockwood@tadl.org>