write lock file in every transaction
small syntax stuff
rename entry -> document
add documentIdFromName and documentNameFromId
release 0.4.0