Changed config class constructor so it accepts a boolean variable that is true in order to create open boundary conditions. It has a default value of false (periodic boundary conditions.