fix incorrect use of free
add KW_BringToFront and KW_SetFocusedWidget functions
Fix line endings to LF