added separate function to res_manip. Added tests. Extended matquery to take nuclide strings via nucname