Added comments to functions in num.rs.

Copied existing comments from other files, and added some comments for
those that did not have any existing comments.