Add function to get frame element at the ith index
Add function to get index of data at max for freq
Merge branch 'analysis'