refactored RemoteCollectorOutputFormat and added some JavaDoc