New results in averaging theory and its applications