Minor fix of pull request issues.
Imports.
Some comments are re-written.
Some conditions are refactored.
Duplicate effector notations are removed.
Solve the error: A configKey can not be cast to String
Definition of the two Double Sensors have been modified
Mysql support was added for php5