Fix bugs, add package.json, add  cover support