Various consistency fixes in numerous modules

Some of these were my own fault, but I went ahead and fixed a couple of inconsistencies I found. Mainly EOF newlines and interface implementation.