bugfix: since option --headless was added, SopnetDialog was not initialized correctly
added binary create_cost_function