Added comments to functions in num.rs.

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