Converted to JavaApplet for website use.
Added ID to MathTreeNodes that increment every creation.