added more PartisN functions to take meshes and write
moved the bxslib function to be callable outside the PartisN class
added additional comments