added factory generator
Merge pull request #3 from csharon/service-generator

added factory generator