ported bool
add bool test
formatting