Small stability fixes and deleted unneccessary files/code