Added Contains(string name) method
Units sample update

- Added conversions;
- Minor refactoring.