Refactored datastructures 2

API for sending Diagnostic Requests.