#20 More work on adding a launch script.
#20 More work on main script.
#20 more bug fixes. Also get plots working if X is absent.