move var declarations to the top
simplify
wrap Libertree.Intro in immediate function

mostly indentation changes.
make most functions private
name river mapping function