added comments
add code for getlog and tests
added delete and unit tests