more functions

added the bindEvent, sub pub events, timer and search