Added a function to generate orders.

-Units can generate a list of possible orders that they can do.
-Added some more comments.