Update Controller / Sensor
add doAction function
refactorized
add libraries