new function add_file, simplifies a few things
better way of inputting things
bugfixes