Code formatting in BaseWriter.java

Also some helpful comments.
Remove leading and trailing angle brackets from type names.

Only applies to method parameters and return types.