Added more error messages. Fixed bug in setPidRaw