added travis, rewrote api
removed old file