refactor dock widgets to be in different modules; new debug widget with debug drawing params; new options for environment