Refactoring using traits. Renamed IdInterface Id. Add methods for checking sex, close #10