changed input type requirement

changed input type requirement from text to text or number (html5 input type)
fixed bug: cannot set start to the max value

sometimes the steps array misses the max value due to float point error
changed how steps are calculated by adding a small number to the end condition