Clean up code and notes.
Added pdf flowcharts.