Streamlined esh.c

Incorporated functions from other files and tidied up the isotropic
scattering function. Also defined pi in output.c for convenience. There
are a few comments in esh.c relating to an error I got, and stuff, if
you guys wouldn't mind taking a look.