Updated view controller
fixed playlist looping bugs and added documentation