Allowed the factory to accept a string without the class type prefix. Removed constants. Fixed #19