Added more documentation for methods in extra.rb