added the osc settings dialog and refactored some more stuff