add few comments
rewrite insert and search function