Fixed a bugs, and make sure it support component build.
Adding a ReadMe.md file.