added basic demo; added transition detection; updated readme