Enabled -Wextra and -Weffc++

Made code compliant to Effective C++ style guidelines