Removed 204 header code as it prevented further output.
Cleaned up RestService.