Improved mean period constant finding function.

Cleaned up the code. Added two output options: the actual number of simulated periods, and the raw simulated period data as a cell array.

Signed-off-by: Andrew D. Horchler <adh9@case.edu>