Three point identities and inequalities, ostrowski type inequalities, Newton-Cotes quadrature