added comment for understanding
added new line tester and new line handler
added a }, that was causing a error