Adding support for single statement loops and direct recursion.

* Refactoring code to switch/case for case distinction.
* This closes issue #16.