fixed many bugs in editor. added in Teel's code for variable tracker window.