Cleaned up some of the static functions provided by the solver. Revised some old examples and organized the code that supports them.