ADD A SIMPLE API

API STILL NEEDS IMPROVEMENTS