Completed D_Device.cpp and D_Message.cpp, ready for testing.