Moved control loop to own function and added "dsh > " to input prompt