Tested PhEDEx API. Added exception handling. Restrictive API atm