code clean up in progress
big code clean up in progress. Rythm event system coding finished