Fix bug in parseValue
Remove print statements
Fix parseValue returning empty ranges for any input