Add basic API

Add basic API with documentation