turn on gcc warnings: and made a few small costmetic change to silence a few of them