change interrupt, add collision detection, combined license and readme

Made on interrupt faster and lighter. The write function now sets a flag
in a collision.