adds logfilenocry option + some more tests and parameter checking