first commit to frontend-iter2; added opCode to orderToJSON()