add inject function; renamed createFactory to singleton
readme: autogenerate methods section