Implemented running in background. Allowed empty commands. Better error messages for invalid input.