whitespace changes only
add missing license header and remove BOM
improve ad-hoc bubble canceling strategy