Library for simulating pulsar candidates (pfd and singlepulse)