fixed photodiode init... hopefully this didn't break anything else about
beta