Add trailing slashes to javadoc links

This circumvents a bug found with Java 8's javadoc.
Remove trailing spaces from source files