implemented new readfile for dataset matrices; placed HC routine in a
new file;