Slight change in new flow component logic, correction of density used. Some documentation added.

Compile on OS X O.K.