adding data save via local storage, and some small api changes