Moved API to separate file. Added a bit of text