Removed a heap of un-needed functions, can now run a process in the background, added a few tests