updated strcat functionality and commenting format