added comments to onlyNumbers function.