New results on averaging theory and applications