Added the ability to read a gem (opens gem homepage in default browser). Refactored the code for reading and opening a gem accordingly.