refactor to get rid of a bunch of useless functions and update documentation. seems to have broke the program.
more towards proper functionality