Modified planck function based on the one in pysynphot. Added tests and documentation.