replace and() functions with && operators

and() was introduced in 7.4 and is not present in previous versions.
fixes #16