initial commit

spec library only
add constraint library
add validator API's
Refactoring API