Fix ip6 checksum

Close #34 and #35 with some whitespace cleanups.