Hannah's header fix, since she hates git :(
Some minor fixes for compiling and a few direchlet functions