the 1st beta.

add API. implelment the basic features.