Adding factory functionality.  Handling of kwargs unfinished.
Fixing the factory and adding tests.
Update README.md
PEP8 fix due to typo.
Merge pull request #11 from ricomoss/factory

Factory