Removed some global function declarations
Added ruby version