Modulized to easier check available space at phedex. Added calculation of dataset size