IsoApplet: added better debugging support and general cleanup