added plot_widget.py
finished plot_state, plot_widget objects