changed single line comment style. use constants instead of 255. made isAllNotGiven easier to read