adds logging mechanism
deletes unneeded doc