> On a side note, could you guys give a few rules of thumb you follow in
> order to make your code clean and readable?
 

An rpa guide to decent API design:

http://rpa-base.rubyforge.org/wiki/wiki.cgi?GoodAPIDesign

cheers,
                        vruz