typedef enums. Add getErrorCode() method

- Get the actual IOReturn error code with getErrorCode() method
- Use CPU diode TMP sensor (same as smcFanControl)
- Check if SMCOpen() is successful