updated to latest version of C~ (uses setup/loop and [] for arrays)