observe PEP8 style
ADD: device ID
MOD: refactoring and add test