Modularized program, now processes points in chunks of 100000. Added notifications.