add search api
added chargram search
fixed bugs