splitting order from lines; added basic order creation functionality