code cleanup
Working shell.
Added signal handling and Job management.