Bug fixes of order flow and history updating, demo functionality added