add comments, TODO, and reverses the characters in the char array