refactoring part2 removal of all unused and obsolete code and added missing documentation for service and dao layer. added missing license header to all files in backend.