Lockfile and reformatting code

Lockfile is now kept fresh on each loop, as well as some of the code is
now formatted properly. My IDE doesn’t seem to do it for me, so it’s a
manual process.
Log typo & bumped version