Made sic output more debugging friendly, added onjoin and onpart handlers