Modified Gravity Theories on a Nutshell: Inflation, Bounce and Late-time Evolution