Some results in harmonic analysis related to pointwise convergence and maximal operators