Made program ruby 1.9.3 compatible.
Added top_tags function. Removed some typos. Added proper Timeout handling.