Change stop detection algorithms

fixed problem with vehicles slowly advancing when should be stopped

added UI controls and removed key handler.  UI controls are not part of core library