Boolean class was causing problems. #31

Using boolean class was causing problems shown in #31. This patch fixes the problem, but it still needs to be understood.

This closes #31