Code formatting
Changed main script (used when requiring)
Add socket config var
Massive updates to how proccesses are managed