Moved code into an api folder and binary