extracted NaN and Infinity to contstants / refacored
Merge pull request #18 from robertino/master

extracted NaN and Infinity to contstants / refactored