Added round robin selection and some compilation options, fixed what seemed to be another termination bug. This is the "release" version.