Made batch runs possible. Simplified parameters and module code.