wip: remove old files and update/add more function documentation