Cosmetics, cleanup, docstrings

Signed-off-by: Michael Livshin <dev@cmm.kakpryg.net>