re-arrange parameters, add readme.md, change license