add main file

this file provides the main API