Merge pull request #1 from michelemorello/master

REST ugrade to the web service
Merge pull request #2 from michelemorello/master

major fix
Merge pull request #3 from michelemorello/master

minor bug fix