Housekeeping

Set -Wall and fixed up any warnings.
Formatting on v2.c.