Added method to check if a Data identifier is valid
Moved some exceptions