Maximum Principles and Geometric Applications