17watts for a 40 works out at 0.4 watts per gallon. For most plants you need in excess of 1.5 watts per gallon, i think... someone else can probably give you a better idea. I have about 2wpg and my plants all do well.
As for the beard algae, try cutting down the amount of time you have your lights on for... 15 hours is quite a long time.
I have mine on for a total of 12 hours, using a 'siesta' method. On for a few hours in the morning, then off for a few, then on again till I go to bed.
To get rid of the beard algae i would suggest having your lights on for no more than 9 hours a day till it clears up... try 4 hours on, 3 off then 5 on. Make sure during the 3 hours off you have some diffused light through a window, as the plants make out this is cloud cover, but the algae can't stand it.
I got rid of a bad amount of hair algae over the course of about 2 weeks using this method.