A colection of algorithms for callibrating an EMCCD