bool operator implementation moved to cpp, other cosmetics