add doc to Order model and remove useless function
move doc string into function block