implemented API, changed to container, added PUT