latest implementation of add_data

removed all debugging lines
Merge pull request #2 from TPetach/master

latest implementation of add_data