Added a way to add orders from market analyzer. Many other fixes.