Reformatted all code
Fixed problems with sound.