Added arg count checking
Added argument extraction
Fixed arg count bug
Added arg checking and extraction
Added a signal handler
Added socket