Added xrun callback and other small fixes