Added 'name' property, cleaned up error emitters.
Cleaned up error emitter, but addModule is likely to change soon anyway.