finished string into number function; starting debug and comments.