Fixed eclipse errors
Implements different playback modes