Simplified the exception classes
Name registry is now in its own class