bool devHasMethod(int id, int method) and replaced with int devMethods(int id)
Returned correct id when adding a new device. Fixed crash if no device was found in devHasMethod().