Bug fix and added option to input results limit value

Tinysong sometime likes to return less then the set limit. Changed the range to rely on the actual number of results instead of the limit.