Values less than 0 are now rounded up to 0. Values greater than 255 are still allowed (which should not be the case, a test needs writing for this)
Added a check to make sure values do not exceed 255 (no test cases that invoke this yet though)