Renamed all Boolean types to BOOL to conform with Objective-C standards