Refactor packages
Added Rest Controller
Added more REST methods.