Solar Cell functioning
Setence like that:

"I understand how current is being generated because of optical generation but i dont quite understand the voltage being generated by the solar cell"

mean total misunderstanding how the PN junction and solar cell works. 

But here is very intuitive description (read all pages):

http://science.howstuffworks.com/environmental/energy/solar-cell1.htm

Hope this helps.