Working QuadraticSieve module + modular separation of tasks + more error handling