Finished framework with bug fixes.

Still need to build runApp.py and interface for it.