CompareTo Comments and Fix

- Comments for the CompareTo function
- Fix for the !contain case