Semilocal Density Functionals for Exchange and Correlation : Theory and Applications