style updates & typos
adding -Wextra to CXXFLAGS