Change some variable names
New `registerFactory` method
Update docs
Order parameters
Complete registerFactory test