fixed roll

Fixed the way the api parses Rolls and added the onroll event, plus a
few other small bug fixes