* src/input: update ES object vars when an ES is removed + some coding style changes.