Added Boolean vector functions, improved others