Check out anything from Sandia National Laboritories. They have a "Handbooks of Recommended Design Practices" and reprints of many well written articles. John Wiles seems to be on a crusade to bring code compliance to the PV world of backyard do-it-yourselfers. If you get the chance take a class from him.

http://photovoltaics.sandia.gov