Fixed non-working srun, added function for creating periodicity for poisson, added typo handling.