Added API client and file cleanup

See the Readme for more info on changes