some refactoring
added pedestrian warning, basic collision algorithm, range picker
added comments
added changes