Move all devices to EDevice.cpp,.h

And some DEBUG print changes