refactor: rename unused funs, minor optimisations, comment the code etc