finished reg_alloc
fixing file stuff