Added function is_var? to file common.rb
Added get_name function
Improved the get_name function