Fixed getSingle to not iterate through all items before throwing exception on collections containing more than 1 element
Changed PHPDoc return types for numeric values to double
Fixed some typos