Api

I just tried implementing some basic files for phase syncing, let me know if I did anything wrong