updated reference page generator
fixed wrong name of factory function