Added state machine and quicksort examples
Tweaks