Add boolean type and necessary comments