added model parameter so that you can provide wake and its derivaties (ie load from xml first). other minor fixes
allow the user to provide flow gradients