Convert gears.rb and nuts.rb to new method of building objects.

btw, change nuts.rb's identation to 2 spaces.