Added registry, abstract singleton and exception classes