Added suport for newman and bloch periodic boundaries.
Newman has been tested with an example but periodic hasnt.