Some refactor and added a readme.