Removed trailing white space and made petsc/slepsc optional