Modified pulsar code slightly. Added new rebin code.