Number Function Complete

finished the required number function and added console output to go
with it. Also made some small changes to comments