further restructuring

moved rest interfaces into a separate folder
updated pds functions