refactored code, adding routes
Merge pull request #2 from readitlive/feature/apiRoutes

refactored code, adding routes