Fixed #383 Option to install documentation for gems

Hi guys

Please consider including this patch into the mainstream release. If there are any corrections I'll have to make, please let me know.


Thank you.

Alex