minor refactoring. added drag/drop support.
working on graphing.