Adding Boolean Method

Adding Boolean Method and cleaning some indexing errors.