Final pre-meet program. Numerous bug fixes and improvements