Added penalty function.
Added qt gui stuff.