Updated range function, updated readme api

Old function was limited to numbers, used a vector for some sleepy reason. New one has error checking, uses an initializer list.