Huge debug and cleanup before release.

Some UIs still need some work to get out perfect but on the whole not to bad. Still need to test all tasks and stuff.
Starting work on instrument debugger.