(second try) changed directory structure and added put/getdata routines