API addition

Begining to package all funtions into one api file