cleanup wlib code
use bool/true/flase where it is possible