fixing whitespace and syntax issues in executethis and adding optional callbacks in functions without them