added a call to repaint the frame

Bug 3 Fix
wrote code to manage log insets

bug 2 fix
commenting on fix