fixed crashes + custom port & workersNum implemented. Fixed #2