changed run mode from applet to application
adjusted some text drawing