Add set_opacity function
Add set_window_type function
Remove commented code