add license and minimized code and update README