updated source with fixes on vehicle crash logic and some additional streamlining on code and doc.