add gradle support , fix code
update readme