added parameters to rest service
added package.json to control package handling wisely