sets up file structure, initializes class