Made flattenCalendar() and extractElement() private

since they aren’t called outside the class
Removed excessive line breaks in output file
No need to check experiment_objects isset

since getExperimentObjects() does this already