added another check
working on errors
working on errors 2
working on errors 3
added better audio sync and image buffer handling