add bool class, and fix a couple int issues