fixing docs and adding data interface