Refactor class structure, add basic support for sensors, add config file.