Title: Nonsmooth Optimization-Analysis and Algorithms with Applications to Optimal Control