Tested and finished what I could finish

Added for loop corrections, added string function and concatenation, added extra outputs.