Removed unwanted boolean cast, fixed documentation