Added transparency on windows (plus code cleanup)