[#105] Now records lock time
[#105] Fix memory leaks
[#105] Unit tests
[#105] Docs