Add autoplay and autochange functionality. Minor bug fixes