fixed bug with enroll + added testfile for main