added defaults handling of data and ref path

the script now requires datapath and refpath arguments specifying the
directory, and if paths are not provided, it handles the situation and
either prints a warning or raises an exception