Finished Gem fixes and documentation.