doy
bugfixes, variable standardisation
more durr
update
further chunks of the rewrite
start of renames
rework functions into distinct, package-like files.
fix variable names, add generalised source() call.
rename
fitvals