changed BC's to dirichlet (doesn't really matter, but I find it more intuitive). Also modified input k and psiGuess appropriately (which didn't really matter either).