fixes imports
fixes launcy not working with Dir.chdir
fixes bugs and improves documentation