Gems, documentation and improvements