added a confirmation for system executions
moved system_calls into two seperate functions, and made it possible to only run a specific commands
fixed small memory leak
moved common code to a function
made arguments able to find a certain index of a key