draft of class and methods files for generalzied io + vis3d