Remove unnecessary whitespace, add brightness function