added compilation flags for number of masses, period between screen refreshes