Updated documentation to include the $.factory