Added sonar sensor
Added min/max values swapping
Fixed most dumb bug in progamming history
Some more min/max improvements
Some entities renamed
Fixed leaks;
Some improvements in sensor reading
merge and remove legacy