Removed infinity, moved PGRange
got rid of warnings, used to_range in tests