Enabled -Wall and -Wextra

Made code compliant to Effective C++ style guidelines