adds configuration to enable reading corpus from stored file instead of creating a new one and partially refactors code to allow calling single methods