iOS application code for CASR2 project