add -Wall and fix silly warnings
little cosmetic fixes