Added brightness determining function and updated README for windows