Complete lookup tables added. calc_rg functioning properly!!