Added tBegin and tEnd to getSignal. Added missing docstrings and inserted some line breaks.