reorganized gui into a class. also, plotting parameters can be updated
using node properties.