cleaned up and fixed create bool function
More cleanup