Added code that detects whether the main process was instatiated with --debug, and if so, gives each forked process a unique debug port
Defined debug port as a variable
cleanup #4