fix some typos, improve factory injections example