Refactoring using Model pattern
Fixed json request and removed querystring dependence
updated README